<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <!-- hexo-inject:begin --><!-- hexo-inject:end --><meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#49b1f5">
<meta name="generator" content="Hexo 5.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/favicon-180x180-yaowan.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-yaowan.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-yaowan.png">
  <link rel="mask-icon" href="/images/logo-yaowan.svg" color="#49b1f5">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/pace-js@1/themes/blue/pace-theme-minimal.css">
  <script src="//cdn.jsdelivr.net/npm/pace-js@1/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"zhouyuqian.com","root":"/","scheme":"Mist","version":"7.7.2","exturl":false,"sidebar":{"position":"right","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":"default","style":"flat"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":true,"color":"#49b1f5","save":"auto"},"fancybox":true,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":"valine","storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":"ture"},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="购买阿里云学生机后的一些折腾">
<meta property="og:type" content="article">
<meta property="og:title" content="服务器上的折腾">
<meta property="og:url" content="https://zhouyuqian.com/2020/01/30/%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84%E6%8A%98%E8%85%BE/index.html">
<meta property="og:site_name" content="Fitz&#39;s Blog - 快乐学习每一天">
<meta property="og:description" content="购买阿里云学生机后的一些折腾">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://pic.zhouyuqian.com/img/20210727173654.png">
<meta property="article:published_time" content="2020-01-30T07:50:03.000Z">
<meta property="article:modified_time" content="2021-08-31T12:17:38.000Z">
<meta property="article:author" content="Fitz">
<meta property="article:tag" content="Linux">
<meta property="article:tag" content="GEEK">
<meta property="article:tag" content="服务器">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://pic.zhouyuqian.com/img/20210727173654.png">

<link rel="canonical" href="https://zhouyuqian.com/2020/01/30/%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84%E6%8A%98%E8%85%BE/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true
  };
</script>

  <title>服务器上的折腾 | Fitz's Blog - 快乐学习每一天</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript><!-- hexo-inject:begin --><!-- hexo-inject:end -->

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <!-- hexo-inject:begin --><!-- hexo-inject:end --><div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <div>
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Fitz's Blog - 快乐学习每一天</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
        <li class="menu-item menu-item-ariang">

    <a href="/AriaNg/" rel="section"><i class="fa fa-fw fa-cloud-download"></i>AriaNg</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>

</nav>
  <div class="site-search">
    <div class="popup search-popup">
    <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocorrect="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result"></div>

</div>
<div class="search-pop-overlay"></div>

  </div>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>
  <a role="button" class="book-mark-link book-mark-link-fixed"></a>

  <a href="https://github.com/Starrynightzyq" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://zhouyuqian.com/2020/01/30/%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84%E6%8A%98%E8%85%BE/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.jpg">
      <meta itemprop="name" content="Fitz">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Fitz's Blog - 快乐学习每一天">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          服务器上的折腾
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-01-30 15:50:03" itemprop="dateCreated datePublished" datetime="2020-01-30T15:50:03+08:00">2020-01-30</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2021-08-31 20:17:38" itemprop="dateModified" datetime="2021-08-31T20:17:38+08:00">2021-08-31</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Linux/" itemprop="url" rel="index"><span itemprop="name">Linux</span></a>
                </span>
            </span>

          <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="fa fa-file-word-o"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>5.6k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="fa fa-clock-o"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>5 分钟</span>
            </span>
            <div class="post-description">购买阿里云学生机后的一些折腾</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="购买域名">购买域名</h1>
<p>域名购买于https://www.namesilo.com，可以用支付宝，比较方便。</p>
<h1 id="内网穿透frp">内网穿透：frp</h1>
<blockquote>
<p>Ref: https://www.jianshu.com/p/3ed3f985f35b</p>
</blockquote>
<p>项目地址：https://github.com/fatedier/frp</p>
<p>之前用的是zerotier，优点是使用起来比较方便啦，不过就是有时会莫名其妙断连。</p>
<blockquote>
<p>PS: zerotier 安装是如果按照官网的说明来会比较慢，可能会出现404，可以使用国内源：<a target="_blank" rel="noopener" href="https://github.com/SUSTech-CRA/ccse-mirrors-web/blob/master/site/help/zerotier.md">Zerotier Mirror</a></p>
</blockquote>
<p>买了一个翻车讯的k3路由器，刷了openwrt后，可以用aria2下电影看啦。在VPS和k3上分别配好frp后，就可以远程连上k3，下载电影，回到家再看。</p>
<p>参考：<a target="_blank" rel="noopener" href="https://moe.best/tutorial/frp.html#frp">[frp] 内网穿透神器搭建 萌新也看得懂的教程系列</a></p>
<p><em>/etc/systemd/system/frps.service</em></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">[Unit]</span><br><span class="line">Description=FRP Server Daemon</span><br><span class="line"></span><br><span class="line">[Service]</span><br><span class="line">Type=simple</span><br><span class="line">AmbientCapabilities=CAP_NET_BIND_SERVICE</span><br><span class="line">ExecStart=/usr/bin/frps -c /etc/frps/frps.ini</span><br><span class="line">Restart=always</span><br><span class="line">RestartSec=2s</span><br><span class="line">User=nobody</span><br><span class="line">LimitNOFILE=infinity</span><br><span class="line"></span><br><span class="line">[Install]</span><br><span class="line">WantedBy=multi-user.target</span><br></pre></td></tr></table></figure>
<p><em>/lib/systemd/system/frpc@.service</em></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">[Unit]</span><br><span class="line">Description=FRP Client Daemon</span><br><span class="line">After=network.target</span><br><span class="line">Wants=network.target</span><br><span class="line"></span><br><span class="line">[Service]</span><br><span class="line">Type=simple</span><br><span class="line">ExecStart=/opt/bin/frpc -c /opt/etc/frpc%i.ini</span><br><span class="line">Restart=always</span><br><span class="line">RestartSec=20s</span><br><span class="line">User=nobody</span><br><span class="line">LimitNOFILE=infinity</span><br><span class="line"></span><br><span class="line">[Install]</span><br><span class="line">WantedBy=multi-user.target</span><br></pre></td></tr></table></figure>
<h1 id="服务器监测netdata">服务器监测：netdata</h1>
<p>项目地址：https://github.com/netdata/netdata</p>
<p>之前用Ubuntu搭建NAS就想要一个web端的性能监测工具，终于找到了netdata这个工具。</p>
<p>默认暗黑主题，嘿嘿，太炫酷了。程序使用C编写，占用资源极低。并且安装方便，可以零配置使用。</p>
<p>顺手给我的Mac上也安装了一个。</p>
<figure>
<img src="https://pic.zhouyuqian.com/img/20210727173654.png" alt="截屏2020-01-30下午4.05.07"><figcaption aria-hidden="true">截屏2020-01-30下午4.05.07</figcaption>
</figure>
<h1 id="宝塔面板">宝塔面板</h1>
<p>项目地址：https://github.com/aaPanel/BaoTa</p>
<p>安装很简单啦，一行命令搞定。具体的还是要看官方文档咯。</p>
<h1 id="薅微软的羊毛用onedrive做共享云盘olaindex">薅微软的羊毛，用OneDrive做共享云盘：OLAINDEX</h1>
<p>项目地址：https://github.com/WangNingkai/OLAINDEX</p>
<blockquote>
<p>占坑，还没装好</p>
</blockquote>
<p>使用宝塔面板安装比较方便一些，参考<a target="_blank" rel="noopener" href="https://imwnk.cn/archives/bt-olaindex">BT 面板安装 OLAINDEX 全方位指南</a>。</p>
<h1 id="下载神器aria2">下载神器：aria2</h1>
<p>个人感觉用逗比的脚本比较方便哈，主要是更新BT-Tracker比较方便。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/aria2.sh &amp;&amp; chmod +x aria2.sh &amp;&amp; bash aria2.sh</span><br><span class="line"><span class="comment">#备用地址</span></span><br><span class="line">wget -N --no-check-certificate https://www.moerats.com/usr/shell/Aria2/aria2.sh &amp;&amp; chmod +x aria2.sh &amp;&amp; bash aria2.sh</span><br></pre></td></tr></table></figure>
<p>安装完成后，如果想修改密码、下载文件位置、端口的话，可以使用命令<code>bash aria2.sh</code>，再选择修改配置即可，这里建议使用该脚本配置自动更新<code>BT-Tracker</code>服务器，对下载<code>BT</code>有加成。</p>
<h1 id="aria2下载自动上传到olaindex">Aria2下载自动上传到Olaindex</h1>
<p>参考：<a target="_blank" rel="noopener" href="https://www.moerats.com/archives/700/">使用Aria2+Aria2Ng+OneIndex+OneDrive建立不限流量/离线BT下载/在线观看网盘</a></p>
<p><a target="_blank" rel="noopener" href="https://www.moerats.com/archives/1006/">一个好用的OneDrive网盘上传工具，支持文件和文件夹上传</a></p>
<p>https://www.moerats.com/archives/1006/</p>
<p>自动上传脚本：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#!/bin/bash</span></span><br><span class="line">downloadpath=<span class="string">&#x27;/home/fitz_ali/aria2c/Download&#x27;</span>   <span class="comment">#修改成Aria2下载文件夹</span></span><br><span class="line">folder=<span class="string">&#x27;/Aria2&#x27;</span>   <span class="comment">#上传至网盘里的文件夹(自动创建)</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span> [ <span class="variable">$2</span> -eq 0 ];<span class="keyword">then</span></span><br><span class="line">    <span class="built_in">exit</span> 0</span><br><span class="line"><span class="keyword">fi</span></span><br><span class="line">path=<span class="variable">$3</span>   <span class="comment">#取原始路径</span></span><br><span class="line">olaindex=`find /www/wwwroot -name artisan`   <span class="comment">#OLAINDEX的artisan文件的绝对路径</span></span><br><span class="line"><span class="keyword">while</span>(<span class="literal">true</span>);<span class="keyword">do</span>   <span class="comment">#path被赋值为Aria2下载目录，filepath被赋值为下载文件的绝对路径或第一层目录</span></span><br><span class="line">    filepath=<span class="string">&quot;<span class="variable">$path</span>&quot;</span></span><br><span class="line">    path=<span class="string">&quot;<span class="variable">$&#123;path%/*&#125;</span>&quot;</span></span><br><span class="line">    <span class="keyword">if</span> [ <span class="string">&quot;<span class="variable">$path</span>&quot;</span> = <span class="string">&quot;<span class="variable">$downloadpath</span>&quot;</span> ] &amp;&amp; [ <span class="variable">$2</span> -eq 1 ];<span class="keyword">then</span>   <span class="comment">#单文件</span></span><br><span class="line">        php <span class="variable">$olaindex</span> od:upload <span class="string">&quot;<span class="variable">$filepath</span>&quot;</span> <span class="string">&quot;<span class="variable">$folder</span>/&quot;</span>   <span class="comment">#上传</span></span><br><span class="line">        rm -rf <span class="string">&quot;<span class="variable">$filepath</span>&quot;</span> <span class="string">&quot;<span class="variable">$filepath</span>.aria2&quot;</span> <span class="string">&quot;<span class="variable">$path</span>/*.torrent&quot;</span>   <span class="comment">#删除</span></span><br><span class="line">        php <span class="variable">$olaindex</span> od:cache   <span class="comment">#刷新</span></span><br><span class="line">        <span class="built_in">exit</span> 0</span><br><span class="line">    <span class="keyword">elif</span> [ <span class="string">&quot;<span class="variable">$path</span>&quot;</span> = <span class="string">&quot;<span class="variable">$downloadpath</span>&quot;</span> ];<span class="keyword">then</span>   <span class="comment">#文件夹</span></span><br><span class="line">        <span class="built_in">cd</span> <span class="string">&quot;<span class="variable">$filepath</span>&quot;</span></span><br><span class="line">        <span class="keyword">for</span> file <span class="keyword">in</span> *;<span class="keyword">do</span>   <span class="comment">#第一层目录</span></span><br><span class="line">            php <span class="variable">$olaindex</span> od:upload <span class="string">&quot;<span class="variable">$file</span>&quot;</span> <span class="string">&quot;<span class="variable">$folder</span>/<span class="variable">$&#123;filepath##*/&#125;</span>&quot;</span></span><br><span class="line">            rm -rf <span class="string">&quot;<span class="variable">$file</span>&quot;</span></span><br><span class="line">        <span class="keyword">done</span></span><br><span class="line">        <span class="keyword">for</span> file <span class="keyword">in</span> */* */*/*;<span class="keyword">do</span>   <span class="comment">#第二、三层目录</span></span><br><span class="line">            php <span class="variable">$olaindex</span> od:upload <span class="string">&quot;<span class="variable">$file</span>&quot;</span> <span class="string">&quot;<span class="variable">$folder</span>/<span class="variable">$&#123;filepath##*/&#125;</span>/<span class="variable">$&#123;file%/*&#125;</span>&quot;</span></span><br><span class="line">            rm -rf <span class="string">&quot;<span class="variable">$file</span>&quot;</span></span><br><span class="line">        <span class="keyword">done</span></span><br><span class="line">        rm -rf <span class="string">&quot;<span class="variable">$filepath</span>&quot;</span> <span class="string">&quot;<span class="variable">$filepath</span>.aria2&quot;</span> <span class="string">&quot;<span class="variable">$path</span>/*.torrent&quot;</span></span><br><span class="line">        php <span class="variable">$olaindex</span> od:cache</span><br><span class="line">        <span class="built_in">exit</span> 0</span><br><span class="line">    <span class="keyword">fi</span></span><br><span class="line"><span class="keyword">done</span></span><br></pre></td></tr></table></figure>
<h1 id="个人媒体服务器jellyfin">个人媒体服务器：Jellyfin</h1>
<p>参考：<a target="_blank" rel="noopener" href="https://www.moerats.com/archives/859/">一款开源免费且类似Emby的个人媒体服务器：Jellyfin安装教程</a></p>
<p>https://www.jianshu.com/p/f8ac045d8ffa</p>
<p>端口：8096</p>
<h1 id="kms服务器">KMS服务器</h1>
<h2 id="安装-kms-server">安装 KMS server</h2>
<p>秋水逸冰的一键脚本：https://teddysun.com/530.html</p>
<ol type="1">
<li><p>使用root用户登录，运行以下命令：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wget --no-check-certificate https://github.com/teddysun/across/raw/master/kms.sh &amp;&amp; chmod +x kms.sh &amp;&amp; ./kms.sh</span><br></pre></td></tr></table></figure></li>
<li><p>安装完成后，输入以下命令查看端口号 1688 的监听情况</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">netstat -nxtlp | grep 1688</span><br></pre></td></tr></table></figure>
<p>返回值类似这样就OK了</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">tcp        0      0 0.0.0.0:1688            0.0.0.0:*               LISTEN      25641/vlmcsd</span><br><span class="line">tcp6       0      0 :::1688                 :::*                    LISTEN      25641/vlmcsd</span><br></pre></td></tr></table></figure></li>
<li><p>本脚本安装完成后，会将 KMS 服务加入开机自启动。</p>
<p><strong>使用命令：</strong></p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">启动：<span class="regexp">/etc/i</span>nit.d/kms start</span><br><span class="line">停止：<span class="regexp">/etc/i</span>nit.d/kms stop</span><br><span class="line">重启：<span class="regexp">/etc/i</span>nit.d/kms restart</span><br><span class="line">状态：<span class="regexp">/etc/i</span>nit.d/kms status</span><br></pre></td></tr></table></figure>
<h2 id="使用-kms-激活-windowsvolume-版">使用 kms 激活 windows（VOLUME 版）</h2></li>
</ol>
<p>使用管理员权限运行 cmd 查看系统版本，命令如下：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wmic os get caption</span><br></pre></td></tr></table></figure>
<p>获取 key</p>
<p>https://docs.microsoft.com/zh-cn/windows-server/get-started/kmsclientkeys</p>
<p>使用管理员权限运行 cmd，命令如下：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 1、卸载已有激活key</span></span><br><span class="line">slmgr.vbs -upk </span><br><span class="line"><span class="comment"># 2、安装新的GVLK</span></span><br><span class="line"><span class="comment"># Windows 7 专业版：FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4</span></span><br><span class="line"><span class="comment"># Windows 8 专业版：NG4HW-VH26C-733KW-K6F98-J8CK4</span></span><br><span class="line"><span class="comment"># Windows 8.1 专业版：GCRJD-8NW9H-F2CDX-CCM8D-9D6T9</span></span><br><span class="line"><span class="comment"># Windows 10 专业版：W269N-WFGWX-YVC9B-4J6C9-T83GX</span></span><br><span class="line">slmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX</span><br><span class="line"><span class="comment"># 3、填写KMS服务器域名或者IP地址（会默认1688端口激活）</span></span><br><span class="line">slmgr.vbs -skms Your IP or Domain:1688</span><br><span class="line"><span class="comment"># 4、尝试连接KMS服务器在线激活（attempt online）</span></span><br><span class="line">slmgr.vbs -ato </span><br><span class="line"><span class="comment"># 5、显示激活信息</span></span><br><span class="line">slmgr.vbs -dlv</span><br></pre></td></tr></table></figure>
<h2 id="使用-kms-激活-officevolume-版">使用 kms 激活 office（VOLUME 版）</h2>
<p>下载的 ISO 文件 cn 打头的是零售版，sw 打头的是 VOL 版。</p>
<p>不过建议使用 <a target="_blank" rel="noopener" href="https://otp.landian.vip/zh-cn/">Office Tool</a>，</p>
<p>包含部署+激活，不需要自己单独下载安装包了，而且可以安装选定的软件，这样就不用安装 office 全家桶了。</p>
<h1 id="nginx文件服务器">nginx文件服务器</h1>
<p>https://www.jianshu.com/p/d9f886a9666a</p>
<h1 id="解决ssh登录后闲置时间过长而断开连接">解决ssh登录后闲置时间过长而断开连接</h1>
<h2 id="方法一">方法一</h2>
<p>修改服务器端，修改 <code>/etc/ssh/sshd_config</code> ，找到<code>ClientAliveCountMax</code>（单位为分钟）修改你想要的值：</p>
<p>然后执行：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo service sshd reload</span><br></pre></td></tr></table></figure>
<h2 id="方法二推荐">方法二（推荐）</h2>
<p>修改客户端，找到当前用户的 <code>.ssh</code> 目录，如 <code>~/.ssh/</code> ，修改该目录下的 <code>config</code> 文件，加入：</p>
<figure class="highlight apache"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">ServerAliveInterval</span> <span class="number">60</span></span><br></pre></td></tr></table></figure>
<p>保存退出，重新开启当前用户的 shell ，则再 ssh 远程服务器的时候，不会因为长时间操作断开。应该是加入这句之后，ssh 客户端会每隔一段时间自动与 ssh 服务器通信一次，所以长时间操作不会断开。</p>
<h1 id="ssh-登录后显示-system-load-信息">ssh 登录后显示 system load 信息</h1>
<blockquote>
<p>https://www.cnblogs.com/yangxiaochu/p/9098960.html</p>
</blockquote>
<p>ssh 登录后显示类似下方的信息：</p>
<figure class="highlight groovy"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><span class="line">Welcome to Ubuntu <span class="number">20.04</span><span class="number">.2</span> LTS (GNU/Linux <span class="number">5.8</span><span class="number">.0</span><span class="number">-59</span>-generic x86_64)</span><br><span class="line"></span><br><span class="line"> * <span class="attr">Documentation:</span>  <span class="attr">https:</span><span class="comment">//help.ubuntu.com</span></span><br><span class="line"> * <span class="attr">Management:</span>     <span class="attr">https:</span><span class="comment">//landscape.canonical.com</span></span><br><span class="line"> * <span class="attr">Support:</span>        <span class="attr">https:</span><span class="comment">//ubuntu.com/advantage</span></span><br><span class="line"></span><br><span class="line">  System information <span class="keyword">as</span> of Mon <span class="number">05</span> Jul <span class="number">2021</span> <span class="number">05</span>:<span class="number">28</span>:<span class="number">58</span> PM CST</span><br><span class="line"></span><br><span class="line">  System <span class="attr">load:</span>  <span class="number">1.12</span>               Users logged <span class="attr">in:</span>             <span class="number">1</span></span><br><span class="line">  Usage of /:   <span class="number">2.8</span>% of <span class="number">467.96</span>GB   IPv4 address <span class="keyword">for</span> <span class="attr">docker0:</span>    <span class="number">172.17</span><span class="number">.0</span><span class="number">.1</span></span><br><span class="line">  Memory <span class="attr">usage:</span> <span class="number">26</span>%                IPv4 address <span class="keyword">for</span> <span class="attr">eno2:</span>       <span class="number">192.168</span><span class="number">.2</span><span class="number">.11</span></span><br><span class="line">  Swap <span class="attr">usage:</span>   <span class="number">0</span>%                 IPv4 address <span class="keyword">for</span> <span class="attr">vmnet1:</span>     <span class="number">192.168</span><span class="number">.69</span><span class="number">.1</span></span><br><span class="line">  <span class="symbol">Temperature:</span>  <span class="number">55.0</span> C             IPv4 address <span class="keyword">for</span> <span class="attr">vmnet8:</span>     <span class="number">172.16</span><span class="number">.19</span><span class="number">.1</span></span><br><span class="line">  <span class="symbol">Processes:</span>    <span class="number">391</span>                IPv4 address <span class="keyword">for</span> <span class="attr">ztuga25q2a:</span> <span class="number">192.168</span><span class="number">.196</span><span class="number">.236</span></span><br><span class="line"></span><br><span class="line"><span class="number">32</span> updates can be applied immediately.</span><br><span class="line">To see these additional updates <span class="attr">run:</span> apt list --upgradable</span><br><span class="line"></span><br><span class="line">Your Hardware Enablement Stack (HWE) is supported until April <span class="number">2025.</span></span><br><span class="line">No mail.</span><br><span class="line">Last <span class="attr">login:</span> Mon Jul  <span class="number">5</span> <span class="number">17</span>:<span class="number">24</span>:<span class="number">54</span> <span class="number">2021</span> from <span class="number">192.168</span><span class="number">.2</span><span class="number">.101</span></span><br></pre></td></tr></table></figure>
<p>只需要安装 <code>landscape-common</code> 然后重新登录就可以了。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install landscape-common</span><br></pre></td></tr></table></figure>
<h1 id="个人服务器">个人服务器</h1>
<h2 id="新建用户">新建用户</h2>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">~~~</span><br><span class="line"></span><br><span class="line"><span class="comment">## 修改服务器名</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">## 换源</span></span><br><span class="line"></span><br></pre></td></tr></table></figure>
<p>sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list ~~~</p>
<h2 id="桌面-远程连接">桌面 &amp; 远程连接</h2>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">xubuntu-desktop</span></span><br></pre></td></tr></table></figure>
<h2 id="办公">办公</h2>

    </div>

    
    
    

    <div>
      
        <div>
    
        <div style="text-align:center;color: #ccc;font-size:14px;">-------The end of this article&nbsp;<i class="fa fa-paw"></i>&nbsp;Thank you for your reading-------</div>
    
</div>
      
    </div>
        

<div>
<ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者： </strong>Fitz
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="https://zhouyuqian.com/2020/01/30/%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84%E6%8A%98%E8%85%BE/" title="服务器上的折腾">https://zhouyuqian.com/2020/01/30/服务器上的折腾/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/zh" rel="noopener" target="_blank"><i class="fa fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/Linux/" <i class="fa fa-tag"></i> Linux</a>
              <a href="/tags/GEEK/" <i class="fa fa-tag"></i> GEEK</a>
              <a href="/tags/%E6%9C%8D%E5%8A%A1%E5%99%A8/" <i class="fa fa-tag"></i> 服务器</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/01/26/%E8%BD%A6%E6%B5%81%E9%87%8F%E7%BB%9F%E8%AE%A1/" rel="prev" title="车流量统计">
      <i class="fa fa-chevron-left"></i> 车流量统计
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/02/05/Ubuntu%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6%E5%A4%87%E4%BB%BD/" rel="next" title="Ubuntu安装软件备份">
      Ubuntu安装软件备份 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#%E8%B4%AD%E4%B9%B0%E5%9F%9F%E5%90%8D"><span class="nav-number">1.</span> <span class="nav-text">购买域名</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8Ffrp"><span class="nav-number">2.</span> <span class="nav-text">内网穿透：frp</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9B%91%E6%B5%8Bnetdata"><span class="nav-number">3.</span> <span class="nav-text">服务器监测：netdata</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E5%AE%9D%E5%A1%94%E9%9D%A2%E6%9D%BF"><span class="nav-number">4.</span> <span class="nav-text">宝塔面板</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E8%96%85%E5%BE%AE%E8%BD%AF%E7%9A%84%E7%BE%8A%E6%AF%9B%E7%94%A8onedrive%E5%81%9A%E5%85%B1%E4%BA%AB%E4%BA%91%E7%9B%98olaindex"><span class="nav-number">5.</span> <span class="nav-text">薅微软的羊毛，用OneDrive做共享云盘：OLAINDEX</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E4%B8%8B%E8%BD%BD%E7%A5%9E%E5%99%A8aria2"><span class="nav-number">6.</span> <span class="nav-text">下载神器：aria2</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#aria2%E4%B8%8B%E8%BD%BD%E8%87%AA%E5%8A%A8%E4%B8%8A%E4%BC%A0%E5%88%B0olaindex"><span class="nav-number">7.</span> <span class="nav-text">Aria2下载自动上传到Olaindex</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E4%B8%AA%E4%BA%BA%E5%AA%92%E4%BD%93%E6%9C%8D%E5%8A%A1%E5%99%A8jellyfin"><span class="nav-number">8.</span> <span class="nav-text">个人媒体服务器：Jellyfin</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#kms%E6%9C%8D%E5%8A%A1%E5%99%A8"><span class="nav-number">9.</span> <span class="nav-text">KMS服务器</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-kms-server"><span class="nav-number">9.1.</span> <span class="nav-text">安装 KMS server</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8-kms-%E6%BF%80%E6%B4%BB-windowsvolume-%E7%89%88"><span class="nav-number">9.2.</span> <span class="nav-text">使用 kms 激活 windows（VOLUME 版）</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8-kms-%E6%BF%80%E6%B4%BB-officevolume-%E7%89%88"><span class="nav-number">9.3.</span> <span class="nav-text">使用 kms 激活 office（VOLUME 版）</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#nginx%E6%96%87%E4%BB%B6%E6%9C%8D%E5%8A%A1%E5%99%A8"><span class="nav-number">10.</span> <span class="nav-text">nginx文件服务器</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E8%A7%A3%E5%86%B3ssh%E7%99%BB%E5%BD%95%E5%90%8E%E9%97%B2%E7%BD%AE%E6%97%B6%E9%97%B4%E8%BF%87%E9%95%BF%E8%80%8C%E6%96%AD%E5%BC%80%E8%BF%9E%E6%8E%A5"><span class="nav-number">11.</span> <span class="nav-text">解决ssh登录后闲置时间过长而断开连接</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%96%B9%E6%B3%95%E4%B8%80"><span class="nav-number">11.1.</span> <span class="nav-text">方法一</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%96%B9%E6%B3%95%E4%BA%8C%E6%8E%A8%E8%8D%90"><span class="nav-number">11.2.</span> <span class="nav-text">方法二（推荐）</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#ssh-%E7%99%BB%E5%BD%95%E5%90%8E%E6%98%BE%E7%A4%BA-system-load-%E4%BF%A1%E6%81%AF"><span class="nav-number">12.</span> <span class="nav-text">ssh 登录后显示 system load 信息</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E4%B8%AA%E4%BA%BA%E6%9C%8D%E5%8A%A1%E5%99%A8"><span class="nav-number">13.</span> <span class="nav-text">个人服务器</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%96%B0%E5%BB%BA%E7%94%A8%E6%88%B7"><span class="nav-number">13.1.</span> <span class="nav-text">新建用户</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%A1%8C%E9%9D%A2-%E8%BF%9C%E7%A8%8B%E8%BF%9E%E6%8E%A5"><span class="nav-number">13.2.</span> <span class="nav-text">桌面 &amp; 远程连接</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%8A%9E%E5%85%AC"><span class="nav-number">13.3.</span> <span class="nav-text">办公</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Fitz"
      src="/images/avatar.jpg">
  <p class="site-author-name" itemprop="name">Fitz</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">78</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">25</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">52</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/Starrynightzyq" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;Starrynightzyq" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:starrynightzyq@gmail.com" title="E-Mail → mailto:starrynightzyq@gmail.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://space.bilibili.com/57711842" title="Bilibili → https:&#x2F;&#x2F;space.bilibili.com&#x2F;57711842" rel="noopener" target="_blank"><i class="fa fa-fw fa-custom bilibili"></i>Bilibili</a>
      </span>
      <span class="links-of-author-item">
        <a href="http://wpa.qq.com/msgrd?v=3&uin=2421854978&site=qq&menu=yes" title="QQ → http:&#x2F;&#x2F;wpa.qq.com&#x2F;msgrd?v&#x3D;3&amp;uin&#x3D;2421854978&amp;site&#x3D;qq&amp;menu&#x3D;yes" rel="noopener" target="_blank"><i class="fa fa-fw fa-custom qq"></i>QQ</a>
      </span>
  </div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title">
      <i class="fa fa-fw fa-link"></i>
      Links
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="http://leiblog.wang/" title="http:&#x2F;&#x2F;leiblog.wang" rel="noopener" target="_blank">Lei Blog</a>
        </li>
    </ul>
  </div>

      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        
  <div class="beian"><a href="http://beian.miit.gov.cn/" rel="noopener" target="_blank">苏ICP备20042287号 </a>
  </div>

<div class="copyright">
  
  &copy; 2018 – 
  <span itemprop="copyrightYear">2024</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Fitz</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    <span title="站点总字数">251k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">3:48</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> 强力驱动 v5.3.0
  </div>
  <span class="post-meta-divider">|</span>
  <div class="theme-info">主题 – <a href="https://mist.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Mist</a> v7.7.2
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/theme-next/theme-next-pjax@0/pjax.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>

<script src="/js/bookmark.js"></script>

  <script>
var pjax = new Pjax({
  selectors: [
    'head title',
    '#page-configurations',
    '.content-wrap',
    '.post-toc-wrap',
    '#pjax'
  ],
  switches: {
    '.post-toc-wrap': Pjax.switches.innerHTML
  },
  analytics: false,
  cacheBust: false,
  scrollTo : !CONFIG.bookmark.enable
});

window.addEventListener('pjax:success', () => {
  document.querySelectorAll('script[pjax], script#page-configurations, #pjax script').forEach(element => {
    var code = element.text || element.textContent || element.innerHTML || '';
    var parent = element.parentNode;
    parent.removeChild(element);
    var script = document.createElement('script');
    if (element.id) {
      script.id = element.id;
    }
    if (element.className) {
      script.className = element.className;
    }
    if (element.type) {
      script.type = element.type;
    }
    if (element.src) {
      script.src = element.src;
      // Force synchronous loading of peripheral JS.
      script.async = false;
    }
    if (element.getAttribute('pjax') !== null) {
      script.setAttribute('pjax', '');
    }
    if (code !== '') {
      script.appendChild(document.createTextNode(code));
    }
    parent.appendChild(script);
  });
  NexT.boot.refresh();
  // Define Motion Sequence & Bootstrap Motion.
  if (CONFIG.motion.enable) {
    NexT.motion.integrator
      .init()
      .add(NexT.motion.middleWares.subMenu)
      .add(NexT.motion.middleWares.postList)
      .bootstrap();
  }
  NexT.utils.updateSidebarPosition();
});
</script>




  




  
<script src="/js/local-search.js"></script>













    <div id="pjax">
  

  
      

<script>
  if (typeof MathJax === 'undefined') {
    window.MathJax = {
      loader: {
        source: {
          '[tex]/amsCd': '[tex]/amscd',
          '[tex]/AMScd': '[tex]/amscd'
        }
      },
      tex: {
        inlineMath: {'[+]': [['$', '$']]},
        tags: 'ams'
      },
      options: {
        renderActions: {
          findScript: [10, doc => {
            document.querySelectorAll('script[type^="math/tex"]').forEach(node => {
              const display = !!node.type.match(/; *mode=display/);
              const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
              const text = document.createTextNode('');
              node.parentNode.replaceChild(text, node);
              math.start = {node: text, delim: '', n: 0};
              math.end = {node: text, delim: '', n: 0};
              doc.math.push(math);
            });
          }, '', false],
          insertedScript: [200, () => {
            document.querySelectorAll('mjx-container').forEach(node => {
              let target = node.parentNode;
              if (target.nodeName.toLowerCase() === 'li') {
                target.parentNode.classList.add('has-jax');
              }
            });
          }, '', false]
        }
      }
    };
    (function () {
      var script = document.createElement('script');
      script.src = '//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
      script.defer = true;
      document.head.appendChild(script);
    })();
  } else {
    MathJax.startup.document.state(0);
    MathJax.texReset();
    MathJax.typeset();
  }
</script>

    

  

    </div>

  <!-- 页面点击小红心 -->
  <!-- <script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script> -->
  <script type="text/javascript" src="/js/clicklove.js"></script><!-- hexo-inject:begin --><!-- hexo-inject:end -->
</body>
</html>
